package com.ruoyi.asms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.asms.domain.AsmsFaultResolveStage;
import com.ruoyi.asms.mapper.AsmsFaultResolveStageMapper;
import com.ruoyi.asms.service.IAsmsFaultResolveStageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 故障处理阶段信息Service业务层处理
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Service
public class AsmsFaultResolveStageServiceImpl extends ServiceImpl<AsmsFaultResolveStageMapper, AsmsFaultResolveStage>  implements IAsmsFaultResolveStageService
{
    @Autowired
    private AsmsFaultResolveStageMapper asmsFaultResolveStageMapper;

    /**
     * 查询故障处理阶段信息
     * 
     * @param faultResolveStageId 故障处理阶段信息主键
     * @return 故障处理阶段信息
     */
    @Override
    public AsmsFaultResolveStage selectAsmsFaultResolveStageByFaultResolveStageId(Long faultResolveStageId)
    {
        return asmsFaultResolveStageMapper.selectAsmsFaultResolveStageByFaultResolveStageId(faultResolveStageId);
    }

    /**
     * 查询故障处理阶段信息列表
     * 
     * @param asmsFaultResolveStage 故障处理阶段信息
     * @return 故障处理阶段信息
     */
    @Override
    public List<AsmsFaultResolveStage> selectAsmsFaultResolveStageList(AsmsFaultResolveStage asmsFaultResolveStage)
    {
        return asmsFaultResolveStageMapper.selectAsmsFaultResolveStageList(asmsFaultResolveStage);
    }

    /**
     * 新增故障处理阶段信息
     * 
     * @param asmsFaultResolveStage 故障处理阶段信息
     * @return 结果
     */
    @Override
    public int insertAsmsFaultResolveStage(AsmsFaultResolveStage asmsFaultResolveStage)
    {
        return asmsFaultResolveStageMapper.insertAsmsFaultResolveStage(asmsFaultResolveStage);
    }

    /**
     * 修改故障处理阶段信息
     * 
     * @param asmsFaultResolveStage 故障处理阶段信息
     * @return 结果
     */
    @Override
    public int updateAsmsFaultResolveStage(AsmsFaultResolveStage asmsFaultResolveStage)
    {
        return asmsFaultResolveStageMapper.updateAsmsFaultResolveStage(asmsFaultResolveStage);
    }

    /**
     * 批量删除故障处理阶段信息
     * 
     * @param faultResolveStageIds 需要删除的故障处理阶段信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultResolveStageByFaultResolveStageIds(Long[] faultResolveStageIds)
    {
        return asmsFaultResolveStageMapper.deleteAsmsFaultResolveStageByFaultResolveStageIds(faultResolveStageIds);
    }

    /**
     * 删除故障处理阶段信息信息
     * 
     * @param faultResolveStageId 故障处理阶段信息主键
     * @return 结果
     */
    @Override
    public int deleteAsmsFaultResolveStageByFaultResolveStageId(Long faultResolveStageId)
    {
        return asmsFaultResolveStageMapper.deleteAsmsFaultResolveStageByFaultResolveStageId(faultResolveStageId);
    }

    @Override
    public List<AsmsFaultResolveStage> selectFaultResolveStageByFaultIds(Long[] faultIds) {
        return asmsFaultResolveStageMapper.selectFaultResolveStageByFaultIds(faultIds);
    }
}
